import request from '@/utils/request'

// 查询乐曲信息列表
export function listMusicinfo(query) {
  return request({
    url: '/system/musicinfo/list',
    method: 'get',
    params: query
  })
}

// 查询乐曲信息详细
export function getMusicinfo(id) {
  return request({
    url: '/system/musicinfo/' + id,
    method: 'get'
  })
}

// 新增乐曲信息
export function addMusicinfo(data) {
  return request({
    url: '/system/musicinfo',
    method: 'post',
    data: data
  })
}

// 修改乐曲信息
export function updateMusicinfo(data) {
  return request({
    url: '/system/musicinfo',
    method: 'put',
    data: data
  })
}

// 删除乐曲信息
export function delMusicinfo(id) {
  return request({
    url: '/system/musicinfo/' + id,
    method: 'delete'
  })
}

//导入乐曲
export function importMusicInfo(data){
  return request({
    url: '/system/musicinfo/importMusicInfo',
    method: 'post',
    data: data
  })
}

// 查询虚拟用户详细
export function getVirtualUser(query) {
  return request({
    url: '/backstage/sys/select/virtual/user',
    method: 'get',
    params: query
  })
}

// 修改虚拟用户
export function upVirtualUser(data) {
  return request({
    url: '/backstage/sys/update/virtual/user',
    method: 'post',
    data: data
  })
}

// 新增虚拟用户
export function addVirtualUser(data) {
  return request({
    url: '/backstage/sys/add/user',
    method: 'post',
    data: data
  })
}

// 删除虚拟用户
export function delVirtualUser(data) {
  return request({
    url: '/backstage/sys/delete/virtual/user',
    method: 'post',
    data: data
  })
}
